﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 推荐人
    /// </summary>
    [ExLanguageKey("Referrer")]
    public partial class Referrer
    {
        #region 数据库字段

        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("ReferrerID")]
        [Key]
        public int ReferrerID { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        [ExLanguageKey("SysStoreID")]
        public int SysStoreID { get; set; }

        /// <summary>
        /// 头像Url
        /// </summary>
        [ExLanguageKey("HeaderUrl")]
        public string HeaderUrl { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [ExLanguageKey("Name")]
        public string Name { get; set; }

        /// <summary>
        /// 拼音
        /// </summary>
        [ExLanguageKey("PY")]
        public string PY { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [ExLanguageKey("Phone")]
        public string Phone { get; set; }

        /// <summary>
        /// 状态;禁用=0,启用=1;登录需要判断的
        /// </summary>
        [ExLanguageKey("EnumStatus")]
        public EnumStatus EnumStatus { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [ExLanguageKey("Pwd")]
        public string Pwd { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [ExLanguageKey("IsDel")]
        public bool IsDel { get; set; }

        /// <summary>
        /// 创建员工
        /// </summary>
        [ExLanguageKey("CreateSysEmployeeID")]
        public int? CreateSysEmployeeID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExLanguageKey("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }
        
        #endregion

        #region EF外键对象
        
        /// <summary>
        /// 店铺ID
        /// 店铺;店铺的数据,有Filter的
        /// </summary>
        [ExLanguageKey("SysStore")]
        public SysStore SysStore { get; set; }

        /// <summary>
        /// 客户信息
        /// </summary>
        [ExLanguageKey("SysCustomer")]
        public List<SysCustomer> SysCustomer { get; set; }

        /// <summary>
        /// 推荐人所属机构
        /// </summary>
        [ExLanguageKey("ReferrerOrganizationRelation")]
        public List<ReferrerOrganizationRelation> ReferrerOrganizationRelation { get; set; }

        #endregion
    }
}
